TACTIC: Execute Command
| Requirements | Limitations | Considerations |
|---|---|---|
Endgame installed on the target host | Only one host can be targeted at a time | |
The hostname of the target host |
TACTIC: Execute Commandβ
1 - Target the hostβ
-
From the Endgame web UI, navigate to the
Endpointstab on the left-hand pane -
Find the hostname of interest and click on the respective
ENDPOINT NAMEto get to theEndpoint Detailspage

2 - Specifiy the file and arguments to executeβ
-
Click on
Take Action->Respond -
Click on the
Execute Fileradio button and fill the following:- File Path:
C:\Windows\System32\cmd.exeorC:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe - Max Time (Seconds):
60(or more) - β Collect Output
- Arguments: (The commands you want to execute)
- File Path:
-
Click on
Create Response -
Verify that the
Responses successfully launchedmessage appears and clickClose

3 - Verify the response resultsβ
-
Wait for the
Activity Timelineunder theEndpoint Detailson the left-hand pane to update with aREFRESH LISTnotification -
Click on the
REFRESH LISTnotification -
Verify that the newest
Execute Fileresponse entry under theActivity TimelinesaysExecute File (Success)
NOTE: If the entry says
Execute File (, click on the entry to expand the log message to investigate why the response failedFailed)

Example Commandsβ
TARGET: COM Objectβ
C:\Windows\System32\cmd.exe) ArgumentsReplace <DLL_PATH> with the actual filepath to the DLL that you want to unregister:
TACTIC: Unregister DLLβ
/C "regsvr32 /u <DLL_PATH>"
TARGET: BITS Jobβ
C:\Windows\System32\cmd.exe) ArgumentsReplace <JOB> with the actual job GUID or display name
TACTIC: Cancel BITS Jobβ
/C "BITSADMIN /CANCEL <JOB>"
TARGET: Scheduled Taskβ
C:\Windows\System32\cmd.exe) ArgumentsTARGET: Serviceβ
C:\Windows\System32\cmd.exe) ArgumentsTARGET: WMI Event Subscriptionβ
C:\Windows\System32\cmd.exe) ArgumentsReplace <FILTER_NAME> with the actual WMI Event Filter name, and <CONSUMER_NAME> with the actual WMI Event Consumer name:
TACTIC: Delete Filter+Consumer+Bindingβ
NOTE: This command assumes that the WMI Event Consumer is of type
CommandLineEventConsumer
/C "wmic /namespace:\\root\subscription path __EventFilter where 'Name=\"<FILTER_NAME>\"' delete || wmic /namespace:\\root\subscription path CommandLineEventConsumer where 'Name=\"<CONSUMER_NAME>\"' delete || wmic /namespace:\\root\subscription path __FilterToConsumerBinding where 'Filter=\"Filter=\"\\root\\subscription:__EventFilter.Name=\\\"<FILTER_NAME>\\\"\" and Consumer=\"CommandLineEventConsumer.Name=\\\"<CONSUMER_NAME>\\\"\"' delete"